package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_EQ_SCHEME"
 *     
*/
public class CcpEqScheme implements Serializable {

    /** identifier field */
    private String eqsGuid;

    /** nullable persistent field */
    private String eqsCode;

    /** nullable persistent field */
    private String esgGuid;

    /** nullable persistent field */
    private String eqsName;

    /** nullable persistent field */
    private String userCode;

    /** nullable persistent field */
    private String operExplain;

    /** nullable persistent field */
    private String eqtGuid;

    /** nullable persistent field */
    private String erfGuid;

    /** nullable persistent field */
    private String sysParam;

    /** nullable persistent field */
    private String isSelf;

    /** nullable persistent field */
    private String pagePath;

    /** nullable persistent field */
    private String isPublish;

    /** nullable persistent field */
    private String inputPer;

    /** nullable persistent field */
    private String eqsUrl;

    /** nullable persistent field */
    private String inputDate;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpEqScheme(String eqsGuid, String eqsCode, String esgGuid, String eqsName, String userCode, String operExplain, String eqtGuid, String erfGuid, String sysParam, String isSelf, String pagePath, String isPublish, String inputPer, String eqsUrl, String inputDate, String reserved1, String reserved2, String reserved3) {
        this.eqsGuid = eqsGuid;
        this.eqsCode = eqsCode;
        this.esgGuid = esgGuid;
        this.eqsName = eqsName;
        this.userCode = userCode;
        this.operExplain = operExplain;
        this.eqtGuid = eqtGuid;
        this.erfGuid = erfGuid;
        this.sysParam = sysParam;
        this.isSelf = isSelf;
        this.pagePath = pagePath;
        this.isPublish = isPublish;
        this.inputPer = inputPer;
        this.eqsUrl = eqsUrl;
        this.inputDate = inputDate;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpEqScheme() {
    }

    /** minimal constructor */
    public CcpEqScheme(String eqsGuid) {
        this.eqsGuid = eqsGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="EQS_GUID"
     *         
     */
    public String getEqsGuid() {
        return this.eqsGuid;
    }

    public void setEqsGuid(String eqsGuid) {
        this.eqsGuid = eqsGuid;
    }

    /** 
     *            @hibernate.property
     *             column="EQS_CODE"
     *             length="10"
     *         
     */
    public String getEqsCode() {
        return this.eqsCode;
    }

    public void setEqsCode(String eqsCode) {
        this.eqsCode = eqsCode;
    }

    /** 
     *            @hibernate.property
     *             column="ESG_GUID"
     *             length="32"
     *         
     */
    public String getEsgGuid() {
        return this.esgGuid;
    }

    public void setEsgGuid(String esgGuid) {
        this.esgGuid = esgGuid;
    }

    /** 
     *            @hibernate.property
     *             column="EQS_NAME"
     *             length="50"
     *         
     */
    public String getEqsName() {
        return this.eqsName;
    }

    public void setEqsName(String eqsName) {
        this.eqsName = eqsName;
    }

    /** 
     *            @hibernate.property
     *             column="USER_CODE"
     *             length="2"
     *         
     */
    public String getUserCode() {
        return this.userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    /** 
     *            @hibernate.property
     *             column="OPER_EXPLAIN"
     *             length="500"
     *         
     */
    public String getOperExplain() {
        return this.operExplain;
    }

    public void setOperExplain(String operExplain) {
        this.operExplain = operExplain;
    }

    /** 
     *            @hibernate.property
     *             column="EQT_GUID"
     *             length="32"
     *         
     */
    public String getEqtGuid() {
        return this.eqtGuid;
    }

    public void setEqtGuid(String eqtGuid) {
        this.eqtGuid = eqtGuid;
    }

    /** 
     *            @hibernate.property
     *             column="ERF_GUID"
     *             length="32"
     *         
     */
    public String getErfGuid() {
        return this.erfGuid;
    }

    public void setErfGuid(String erfGuid) {
        this.erfGuid = erfGuid;
    }

    /** 
     *            @hibernate.property
     *             column="SYS_PARAM"
     *             length="1000"
     *         
     */
    public String getSysParam() {
        return this.sysParam;
    }

    public void setSysParam(String sysParam) {
        this.sysParam = sysParam;
    }

    /** 
     *            @hibernate.property
     *             column="IS_SELF"
     *             length="1"
     *         
     */
    public String getIsSelf() {
        return this.isSelf;
    }

    public void setIsSelf(String isSelf) {
        this.isSelf = isSelf;
    }

    /** 
     *            @hibernate.property
     *             column="PAGE_PATH"
     *             length="100"
     *         
     */
    public String getPagePath() {
        return this.pagePath;
    }

    public void setPagePath(String pagePath) {
        this.pagePath = pagePath;
    }

    /** 
     *            @hibernate.property
     *             column="IS_PUBLISH"
     *             length="1"
     *         
     */
    public String getIsPublish() {
        return this.isPublish;
    }

    public void setIsPublish(String isPublish) {
        this.isPublish = isPublish;
    }

    /** 
     *            @hibernate.property
     *             column="INPUT_PER"
     *             length="32"
     *         
     */
    public String getInputPer() {
        return this.inputPer;
    }

    public void setInputPer(String inputPer) {
        this.inputPer = inputPer;
    }

    /** 
     *            @hibernate.property
     *             column="EQS_URL"
     *             length="300"
     *         
     */
    public String getEqsUrl() {
        return this.eqsUrl;
    }

    public void setEqsUrl(String eqsUrl) {
        this.eqsUrl = eqsUrl;
    }

    /** 
     *            @hibernate.property
     *             column="INPUT_DATE"
     *             length="18"
     *         
     */
    public String getInputDate() {
        return this.inputDate;
    }

    public void setInputDate(String inputDate) {
        this.inputDate = inputDate;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="100"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="100"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="300"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("eqsGuid", getEqsGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpEqScheme) ) return false;
        CcpEqScheme castOther = (CcpEqScheme) other;
        return new EqualsBuilder()
            .append(this.getEqsGuid(), castOther.getEqsGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getEqsGuid())
            .toHashCode();
    }

}
